ChatGPT Scripting?

Has anyone tried to use ChatGPT to write custom scripts for keyshot? I have just thought of trying to play with it, but figured I’d ask here first to see if it even works. it looks like its kicking out proper code, and even will respond to adding and changing things in the script it just got done writing.

This would be a huge boost to those of us dunderheads that can’t wrap their heads around Python (which is why I became a creative guy :slight_smile: )

2 Likes

I like this idea a lot! Having gone through a few online Python courses, GPT has helped me to create starting points for scripts and small apps for handling a lot of my remedial business tasks. Generally I have found that the starting point is what I needed more than anything and then can make additions from there. I’m going to try out this idea in the coming weeks and will share anything I come up with. Would be interested in seeing where it lands for you as well!

Cheers,
M

ChatGPT is at least good for a laugh and very responsible. I’m working on a fictional thing based on some trends in The Netherlands and needed a name for the product and mom uh… ChatGPT said:

While the concept you described sounds unique, it’s important to note that safety should always be a priority when designing and using products. Mixing sharp blades with a fidget spinner could pose serious safety risks and is not recommended.

But like Mitchell says, having a nice start of a script would already make a difference. With most AI I think it’s way more artificial than it is actually intelligent. It’s just good at pretending, fake it till you make it. That doesn’t mean it can’t save you from a lot of work especially reducing the time you’ve to spend on less fun tasks. But I think for now some knowledge is still needed to get it to do what you want.

That being said, I’d like to try it as well, just need a bit of an idea to get motivated enough to dive into the scripts.

ok, GPT’s response is making me VERY curious as to what your initial prompt was!

And yes, GPT is NOT intelligent, neither in the technical term nor in the human intuition terms. IT is a fantastic summarizer of data with the ability to use prepositions and conjunctiive words. But for code-phobes like myself, if there is a framework than can be seeded into a LLM like GPT, and be trained for a specific type of output, man that would be huge.

1 Like

If I’ve the animation/video etc finished it will be pretty clear. I’m lousy in drawing pictures so AI (Stable Diffusion) did help me with some of that. I think it’s just amazing these days what you can do with a ‘simple’ desktop and a gaming GPU. Past weekend I also installed some open source which does text to speech and can generate music. Pretty bizar what is possible currently and so much fun playing with it’s possibilities.

That being said, the installation of those open source stuff is a bit of a puzzle for me sometimes. Even if it’s a so called ‘one click installer’. Programmers have a different kind of a ‘one click’ I think :slight_smile:

BTW, I also thought about a test case for my Python try. I’m currently having a quite heavy scene regarding VRAM usage, and I thought it would be quite handy if there was some kind of way to make clear what is actually taking up the most space. That way it’s easier/faster to optimize things. Will be continued.

So, I haven’t personally given it a whirl, but ChatGPT sounds pretty rad for writing custom scripts for KeyShot. From what I’ve seen, it seems to generate legit code and can even handle tweaking script parts it just whipped up. Definitely worth a shot, my friend!

I was just looking around for some more examples rather than using ChatGPT. Especially currently in the tools for AI there are a lot of other alternatives that are open source and not so much relying on a commercial company including it’s censorship.

For programming I came across this which mentions both commercial and Open Source variants with the pros and cons. Google Bard is also available in a lot of countries sine today so I asked it if it also could code Python and it said it could, worth a try :wink:

10 Best Alternatives To ChatGPT: Developer Edition - Semaphore (semaphoreci.com)

You have to think about the logic and the possibilities with the limits of the API.ChatGPT is just a tool used to get a clear code quickly. But you have think through the process in if … then … else, etc.
Imagine to cook blindly, you have to know every step. That’s how the code works.
The code has to find the nodes in the tree by rule or name or material applied. And everything in the tree is a node with different types (group, parts, camera, environment).